package Messages;

import java.io.Serializable;

import Client.ClientDetails;


public class StartConnectionMsg implements Serializable,Msg {
	
	private static final long serialVersionUID = 1L;
	private String userName;
	private String password;
	private String email;
	private String mainFolder;
	
	public StartConnectionMsg(ClientDetails cd) {
		System.out.println(cd.getUserName());
		System.out.println(cd.getPassword());
		System.out.println(cd.getEmail());
		System.out.println(cd.getMainFolder());
		userName = cd.getUserName();
		password = cd.getPassword();
		email = cd.getEmail();
		mainFolder = cd.getMainFolder();
	}
	@Override
	public MsgType getType() {
		// TODO Auto-generated method stub
		return MsgType.START_CONNECTION;
	}
	public String getUserName() {
		return userName;
	}
	public String getPassword() {
		return password;
	}
	public String getEmail() {
		return email;
	}
	public String getMainFolder() {
		return mainFolder;
	}

}
